/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sp.panelcomponent;

/**
 *
 * @author HP
 */
public class LandingButton extends javax.swing.JPanel {

    /**
     * Creates new form LandingButton
     */
    private String state;
    public LandingButton() {
        initComponents();
        this.setOpaque(false);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    
    
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        container1 = new sp.component.Container();
        listinglandingbutton1 = new sp.componentButton.Listinglandingbutton();
        questionnairelandingbutton1 = new sp.componentButton.Questionnairelandingbutton();

        listinglandingbutton1.setText("");
        listinglandingbutton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                listinglandingbutton1ActionPerformed(evt);
            }
        });

        questionnairelandingbutton1.setText("");
        questionnairelandingbutton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                questionnairelandingbutton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout container1Layout = new javax.swing.GroupLayout(container1);
        container1.setLayout(container1Layout);
        container1Layout.setHorizontalGroup(
            container1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(container1Layout.createSequentialGroup()
                .addGap(227, 227, 227)
                .addComponent(listinglandingbutton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(112, 112, 112)
                .addComponent(questionnairelandingbutton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(263, Short.MAX_VALUE))
        );
        container1Layout.setVerticalGroup(
            container1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(container1Layout.createSequentialGroup()
                .addGap(147, 147, 147)
                .addGroup(container1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(listinglandingbutton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(questionnairelandingbutton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(182, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(container1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(container1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void listinglandingbutton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_listinglandingbutton1ActionPerformed
        getQuestionnairelandingbutton1().resetButton();
        setState("listing");
    }//GEN-LAST:event_listinglandingbutton1ActionPerformed

    private void questionnairelandingbutton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_questionnairelandingbutton1ActionPerformed
        getListinglandingbutton1().resetButton();
        setState("quest");
    }//GEN-LAST:event_questionnairelandingbutton1ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private sp.component.Container container1;
    private sp.componentButton.Listinglandingbutton listinglandingbutton1;
    private sp.componentButton.Questionnairelandingbutton questionnairelandingbutton1;
    // End of variables declaration//GEN-END:variables
    
    public sp.componentButton.Listinglandingbutton getListinglandingbutton1() {
        return listinglandingbutton1;
    }

    /**
     * @return the questionnairelandingbutton1
     */
    public sp.componentButton.Questionnairelandingbutton getQuestionnairelandingbutton1() {
        return questionnairelandingbutton1;
    }

    /**
     * @return the selectButton1
     */
   
    /**
     * @return the state
     */
    public String getState() {
        return state;
    }

    /**
     * @param state the state to set
     */
    public void setState(String state) {
        this.state = state;
    }
}
